package com.easou.ps.dk.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;

public class QueryParams implements Serializable{

	private static final long serialVersionUID = 1L;
	private List<String> querys;
	private BaiduResult baiduResult;
	private List<QueryInfo> queryInfos = new ArrayList<QueryInfo>();
	private Map<String, Object> attachment = new HashMap<String, Object>();
	private AtomicInteger catchBaiduCount = new AtomicInteger(0);
	
	public void addCount(){
		catchBaiduCount.getAndIncrement();
	}
	public AtomicInteger getCatchBaiduCount() {
		return catchBaiduCount;
	}
	public void setCatchBaiduCount(AtomicInteger catchBaiduCount) {
		this.catchBaiduCount = catchBaiduCount;
	}
	public List<String> getQuerys() {
		return querys;
	}
	public void setQuerys(List<String> querys) {
		this.querys = querys;
	}
	public BaiduResult getBaiduResult() {
		return baiduResult;
	}
	public void setBaiduResult(BaiduResult baiduResult) {
		this.baiduResult = baiduResult;
	}
	public List<QueryInfo> getQueryInfos() {
		return queryInfos;
	}
	//添加一个query信息到集合中
	public void putQueryInfo(QueryInfo queryInfo) {
		queryInfos.add(queryInfo);
	}
	
	public Map<String, Object> getAttachment() {
		return attachment;
	}
	public void setAttachment(Map<String, Object> attachment) {
		this.attachment = attachment;
	}
	
	
}
